package com.songxh.core.base;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 *基础数据基类，与 MyMetaHandler 类搭配使用，实现 MetaObjectHandler 接口
 * @author songxh
 * @create 2022-12-19-14:28
 */
public class BaseEntity implements Serializable {
    /**
     * 是否删除:0 否,1是
     */
    @TableField(fill = FieldFill.DEFAULT)
    @TableLogic
    @ApiModelProperty(value = "逻辑删除",hidden = true)
    protected Integer isDeleted = 0;

    /**
     * 创建用户Id
     */

    @ApiModelProperty(value = "创建用户Id", position = 980, name = "cI")
    @TableField(fill = FieldFill.INSERT)
    protected Long cI;
    /**
     * 创建用户名称
     */
    @Excel(name = "创建人",isColumnHidden = true)
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建用户名称", position = 981, name = "cN")
    protected String cN;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间", position = 982, name = "cT")
    protected Date cT;
    /**
     * 操作用户Id
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "操作用户Id", position = 984, name = "uI")
    protected Long uI;
    /**
     * 操作用户name
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "操作用户name", position = 985, name = "uN")
    protected String uN;
    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "操作用户name", position = 986, name = "uT")
    protected Date uT;

    public Long getcI() {
        return cI;
    }

    public void setcI(Long cI) {
        this.cI = cI;
    }

    public String getcN() {
        return cN;
    }

    public void setcN(String cN) {
        this.cN = cN;
    }

    public Date getcT() {
        return cT;
    }

    public void setcT(Date cT) {
        this.cT = cT;
    }

    public Long getuI() {
        return uI;
    }

    public void setuI(Long uI) {
        this.uI = uI;
    }

    public String getuN() {
        return uN;
    }

    public void setuN(String uN) {
        this.uN = uN;
    }

    public Date getuT() {
        return uT;
    }

    public void setuT(Date uT) {
        this.uT = uT;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

}
